import java.util.Scanner;

public class Text3 {
    public static void main(String[] args) {
        Scanner sca = new Scanner(System.in);
        int n =3;
        while(n !=0 ){
            int pwd = sca.nextInt();
            if(123 == pwd){
                System.out.println("登录成功");
                break;
            }else{
                System.out.println("密码错误请重新输入");
                n--;
            }
        }
    }
}
